import java.util.Date;

/**
 * This class is used as model. It saves all the data which are needed for a customer.
 */
public class Customer {
	private final int id;
	private Gender gender;
	private String lastName;
	private String firstName;
	private Status status;
	private Date birthday;
	private int turnoverExpectancy;
	private int turnover;

	public Customer(int id, Gender gender, String lastName, String firstName,
			Status status, Date birthday, int turnoverExpectancy, int turnover) {
		super();
		this.id = id;
		this.gender = gender;
		this.lastName = lastName;
		this.firstName = firstName;
		this.status = status;
		this.birthday = birthday;
		this.turnoverExpectancy = turnoverExpectancy;
		this.turnover = turnover;
	}

	public int getId() {
		return id;
	}

	public Gender getGender() {
		return gender;
	}

	public String getLastName() {
		return lastName;
	}

	public String getFirstName() {
		return firstName;
	}

	public Status getStatus() {
		return status;
	}

	public Date getBirthday() {
		return birthday;
	}

	public int getTurnoverExpectancy() {
		return turnoverExpectancy;
	}

	public int getTurnover() {
		return turnover;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public void getLastName(String lastName) {
		this.lastName = lastName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public void setTurnoverExpectancy(int turnoverExpectancy) {
		this.turnoverExpectancy = turnoverExpectancy;
	}

	public void setTurnover(int turnover) {
		this.turnover = turnover;
	}

	@Override
	public String toString() {
		return "Customer:[id:" + id + ";gender:" + gender.name() + ";lastName:"
				+ lastName + ";firstName:" + firstName + ";status:" + status
				+ ";birthday:" + birthday.toString() + ";turnoverExpectancy:"
				+ turnoverExpectancy + ";turnover:" + turnover + "]";
	}
}
